const branch = await $`git branch --show-current`
echo`当前的分支：${branch}`
let warehouseAddress = await question('请输入git仓库地址')
//去除appName的空格
warehouseAddress = warehouseAddress.replace(/\s/g, '')
if (warehouseAddress === '') {
  console.log(chalk.red('必须传入仓库地址'))
  process.exit(1)
}
// 进入apps目录
cd('apps')
console.log(chalk.blue('拉取模版'))
await $`git clone ${warehouseAddress}`
// 返回根目录
cd('..')
const path = await $`pwd`
echo`当前路径：${path}`
await $`yarn install`
console.log(chalk.green('安装完成'))
